﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SmartDeviceProject
{
    public partial class StationTypeFrm : Form
    {
        public string TypeStation = "";
        public bool Isselected = false;
        public StationTypeFrm()
        {
            InitializeComponent();
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Isselected = true;
            if (comboBox1.SelectedIndex == 0)
            {
                TypeStation = "baseline";
            }
            else if (comboBox1.SelectedIndex == 1)
            {
                TypeStation = "baseline-";
            }
            else if (comboBox1.SelectedIndex == 2)
            {
                TypeStation = "chord";
            }
            else if (comboBox1.SelectedIndex == 3)
            {
                TypeStation = "baselinechord";
            }
            else if (comboBox1.SelectedIndex == 4)
            {
                TypeStation = "baseline-chord";
            }
            else if (comboBox1.SelectedIndex == 5)
            {
                TypeStation = "polar";
            }
            else
            {
                Isselected = false;
            }
            this.Close();
        }



        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

    }
}